package com.imarad.bio.socket.core;

import android.content.Context;

import com.imarad.bio.socket.common.Constants;

/**
 * Copyright2017-2017  AMBITION.All Rights Reserved
 *
 * Comments：
 *
 * @author huh
 *
 *         Time: 2018/2/1
 *
 *         Modified By:
 *         Modified Date:
 *         Why & What is modified:
 * @version 1.0.0
 */
public class SocketProperty {

    private static final int DEFAULT_TIMEOUT = 1000;

    private static final boolean ON_TCP_NO_DELAY = true;

    private Context mContext;

    private String mHost;

    private int mPort;

    private int mTimeOuts = DEFAULT_TIMEOUT;

    private boolean tcpNoDelay = ON_TCP_NO_DELAY;

    private int netType;

    public SocketProperty() {
    }

    public SocketProperty(Context context, String host, int port) {
        mContext = context;
        mHost = host;
        mPort = port;
    }

    public Context getContext() {
        return mContext;
    }

    public void setContext(Context context) {
        mContext = context;
    }

    public String getHost() {
        return mHost;
    }

    public void setHost(String host) {
        mHost = host;
    }

    public int getPort() {
        return mPort;
    }

    public void setPort(int port) {
        mPort = port;
    }

    public int getTimeOuts() {
        return mTimeOuts;
    }

    public void setTimeOuts(int timeOuts) {
        mTimeOuts = timeOuts;
    }

    public boolean getTcpNoDelay() {
        return tcpNoDelay;
    }

    public void setTcpNoDelay(boolean tcpNoDelay) {
        this.tcpNoDelay = tcpNoDelay;
    }

    public int getNetType() {
        return netType;
    }

    public void setNetType(int netType) {
        this.netType = netType;
    }
}